program to determine the sum series in c language